from __future__ import print_function, absolute_import
from gm.api import *

set_token('2a7f2510c209f40134f3344abf4bbbfbbd2a4134')


def get_his_data(name, start_time, end_time):
    history_data = history(symbol=name, frequency='1d', start_time=start_time,  end_time=end_time, fields="symbol,open,,close,high,low,amount,volume,bob,eob", adjust=ADJUST_PREV, df= True)
    return history_data